package com.tjsinfo.tjsoa.documentationflow.xingzhengshouwen.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TDangweishouwenNeirong entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TXingzhengshouwenNeirong implements java.io.Serializable {

	// Fields

	private String id;
	private Integer flowid;
	private String laiwenjiguan;
	private String laiwenzihao;
	private String laiwenbiaoti;
	private String fengshu;
	private String shouwenbianhao;
	private Date shouwenriqi;
	private Date laiwenriqi;
	private String jinjichengdu;
	private String zhaiyou;
	private String nibanyijian;
	private String jingshouren;
	private String nibanren;
	private String zhuangtai;
	private Long taskId;
	private Integer sortid;
	private String jingshoubumen;
	private String olderbumen;
	private Integer ischuiban;
	private Set TXingzhengshouwenYijians = new HashSet(0);
	private Set TXingzhengshouwenBumenYijians = new HashSet(0);
	private Set TXingzhengshouwenFujians = new HashSet(0);
	private Integer isguidang;
	private String dangqianhuanjie;
	private Integer dataBaseId;
	private String docId;
	private String bumennames;
	private String bumenids;
	private String lingdaonames;
	private String lingdaoids;
	private String shouwentype;
	
	
	
	
	// Constructors

	public String getDocId() {
		return docId;
	}

	public void setDocId(String docId) {
		this.docId = docId;
	}

	public Integer getDataBaseId() {
		return dataBaseId;
	}

	public void setDataBaseId(Integer dataBaseId) {
		this.dataBaseId = dataBaseId;
	}

	public String getDangqianhuanjie() {
		if("办公室主任二次复核".equals(dangqianhuanjie)){
			return "部门会签复核";
		}else{
			return dangqianhuanjie;
		}
	}

	public void setDangqianhuanjie(String dangqianhuanjie) {
		this.dangqianhuanjie = dangqianhuanjie;
	}

	public String getJingshoubumen() {
		return jingshoubumen;
	}

	public void setJingshoubumen(String jingshoubumen) {
		this.jingshoubumen = jingshoubumen;
	}
	

	public String getShouwentype() {
		return shouwentype;
	}

	public void setShouwentype(String shouwentype) {
		this.shouwentype = shouwentype;
	}

	public Set getTXingzhengshouwenYijians() {
		return TXingzhengshouwenYijians;
	}

	public void setTXingzhengshouwenYijians(Set xingzhengshouwenYijians) {
		TXingzhengshouwenYijians = xingzhengshouwenYijians;
	}
	
	

	public Set getTXingzhengshouwenBumenYijians() {
		return TXingzhengshouwenBumenYijians;
	}

	public void setTXingzhengshouwenBumenYijians(Set tXingzhengshouwenBumenYijians) {
		TXingzhengshouwenBumenYijians = tXingzhengshouwenBumenYijians;
	}

	public Set getTXingzhengshouwenFujians() {
		return TXingzhengshouwenFujians;
	}

	public void setTXingzhengshouwenFujians(Set xingzhengshouwenFujians) {
		TXingzhengshouwenFujians = xingzhengshouwenFujians;
	}

	/** default constructor */
	public TXingzhengshouwenNeirong() {
	}

	/** minimal constructor */
	public TXingzhengshouwenNeirong(Integer flowid, String laiwenjiguan,
			String laiwenzihao, String shouwenbianhao) {
		this.flowid = flowid;
		this.laiwenjiguan = laiwenjiguan;
		this.laiwenzihao = laiwenzihao;
		this.shouwenbianhao = shouwenbianhao;
	}

	/** full constructor */
	public TXingzhengshouwenNeirong(Integer flowid, String laiwenjiguan,
			String laiwenzihao, String fengshu, String shouwenbianhao,
			Date shouwenriqi, String jinjichengdu, String zhaiyou,
			String nibanyijian, String jingshouren, String nibanren,
			String zhuangtai,String bumennames,String bumenids,
			String lingdaonames, String lingdaoids, String shouwentype,
			Set TXingzhengshouwenYijians,Set TXingzhengshouwenBumenYijians, Set TXingzhengshouwenFujians) {
		this.flowid = flowid;
		this.laiwenjiguan = laiwenjiguan;
		this.laiwenzihao = laiwenzihao;
		this.fengshu = fengshu;
		this.shouwenbianhao = shouwenbianhao;
		this.shouwenriqi = shouwenriqi;
		this.jinjichengdu = jinjichengdu;
		this.zhaiyou = zhaiyou;
		this.nibanyijian = nibanyijian;
		this.jingshouren = jingshouren;
		this.nibanren = nibanren;
		this.zhuangtai = zhuangtai;
		this.bumennames = bumennames;
		this.bumenids = bumenids;
		this.lingdaonames = lingdaonames;
		this.lingdaoids = lingdaoids;
		this.shouwentype = shouwentype;
		this.TXingzhengshouwenYijians = TXingzhengshouwenYijians;
		this.TXingzhengshouwenBumenYijians = TXingzhengshouwenBumenYijians;
		this.TXingzhengshouwenFujians = TXingzhengshouwenFujians;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getFlowid() {
		return this.flowid;
	}

	public void setFlowid(Integer flowid) {
		this.flowid = flowid;
	}

	public String getLaiwenjiguan() {
		return this.laiwenjiguan;
	}

	public void setLaiwenjiguan(String laiwenjiguan) {
		this.laiwenjiguan = laiwenjiguan;
	}

	public String getLaiwenzihao() {
		return this.laiwenzihao;
	}

	public void setLaiwenzihao(String laiwenzihao) {
		this.laiwenzihao = laiwenzihao;
	}

	public String getFengshu() {
		return this.fengshu;
	}

	public void setFengshu(String fengshu) {
		this.fengshu = fengshu;
	}

	public String getShouwenbianhao() {
		return this.shouwenbianhao;
	}

	public void setShouwenbianhao(String shouwenbianhao) {
		this.shouwenbianhao = shouwenbianhao;
	}

	public Date getShouwenriqi() {
		return this.shouwenriqi;
	}

	public void setShouwenriqi(Date shouwenriqi) {
		this.shouwenriqi = shouwenriqi;
	}

	public String getJinjichengdu() {
		return this.jinjichengdu;
	}

	public void setJinjichengdu(String jinjichengdu) {
		this.jinjichengdu = jinjichengdu;
	}

	public String getZhaiyou() {
		return this.zhaiyou;
	}

	public void setZhaiyou(String zhaiyou) {
		this.zhaiyou = zhaiyou;
	}

	public String getNibanyijian() {
		return this.nibanyijian;
	}

	public void setNibanyijian(String nibanyijian) {
		this.nibanyijian = nibanyijian;
	}

	public String getJingshouren() {
		return this.jingshouren;
	}

	public void setJingshouren(String jingshouren) {
		this.jingshouren = jingshouren;
	}

	public String getNibanren() {
		return this.nibanren;
	}

	public void setNibanren(String nibanren) {
		this.nibanren = nibanren;
	}

	public String getZhuangtai() {
		return this.zhuangtai;
	}

	public void setZhuangtai(String zhuangtai) {
		this.zhuangtai = zhuangtai;
	}

	

	public Date getLaiwenriqi() {
		return laiwenriqi;
	}

	public void setLaiwenriqi(Date laiwenriqi) {
		this.laiwenriqi = laiwenriqi;
	}
	
	public void addFujian(TXingzhengshouwenFujian xingzhengshouwenFujian)
	{
		xingzhengshouwenFujian.setXingzhengshouwenNeirong(this);
		TXingzhengshouwenFujians.add(xingzhengshouwenFujian);
	}

	public Long getTaskId() {
		return taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	public Integer getSortid() {
		return sortid;
	}

	public void setSortid(Integer sortid) {
		this.sortid = sortid;
	}

	public String getOlderbumen() {
		return olderbumen;
	}

	public void setOlderbumen(String olderbumen) {
		this.olderbumen = olderbumen;
	}

	public Integer getIschuiban() {
		return ischuiban;
	}

	public void setIschuiban(Integer ischuiban) {
		this.ischuiban = ischuiban;
	}

	public Integer getIsguidang() {
		return isguidang;
	}

	public void setIsguidang(Integer isguidang) {
		this.isguidang = isguidang;
	}

	public String getLaiwenbiaoti() {
		return laiwenbiaoti;
	}

	public void setLaiwenbiaoti(String laiwenbiaoti) {
		this.laiwenbiaoti = laiwenbiaoti;
	}
	
	public String getBiaoTiDisplay(){
		if(zhaiyou.length() > 13){
			return zhaiyou.substring(0,12)+"...";
		}else{
			return zhaiyou;
		}
	}

	public String getBumennames() {
		return bumennames;
	}

	public void setBumennames(String bumennames) {
		this.bumennames = bumennames;
	}

	public String getBumenids() {
		return bumenids;
	}

	public void setBumenids(String bumenids) {
		this.bumenids = bumenids;
	}

	public String getLingdaonames() {
		return lingdaonames;
	}

	public void setLingdaonames(String lingdaonames) {
		this.lingdaonames = lingdaonames;
	}

	public String getLingdaoids() {
		return lingdaoids;
	}

	public void setLingdaoids(String lingdaoids) {
		this.lingdaoids = lingdaoids;
	}
	
}